﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/css/global.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/main.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/cic-main.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/WorkListJs/getPage.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Configuration.js")" type="text/javascript"></script>
    <style type="text/css">
        a.LogOut:hover
        {
            color: #FFFFFF;
        }
        a.LogOut
        {
            color: #87CEFA;
        }
    </style>
</head>
<body>
    <div class="All_top">
        <div class="headpart ui-icons">
            <p>
                <i>欢迎</i>,
                @{
                    
                    Wicresoft.SelfService.BL.ITServiceHelper helper = new Wicresoft.SelfService.BL.ITServiceHelper();
                    Wicresoft.SelfService.DAO.UserInfo UI = helper.getUserInfo_By_AccountID(System.Web.HttpContext.Current.User.Identity.Name);                    
                    @UI.userName;
                    <input type="hidden" id="curAccID" value=@UI.accountID />
                }
                <a class="LogOut" href="@Url.Action("LogOut", "Account")">[注销]</a>
                <a class="LogOut" href="@Url.Action("ChangeInfo","Account")">&nbsp;[帐号管理]</a>
            </p>
        </div>
    </div>
    <div class="center">
        <div class="box">
            <div class="center_box_bg">
                <div class="menu">
                    <ul>
                        <li class=""><span class="item_B ui-icons"></span><a href="@Url.Action("Index","WorkList")">工作列表</a></li>
                        <li class="li_width">|</li>
                        <li class=""><span class="item_A ui-icons"></span><a href="@Url.Action("Index","ITService")">IT 服务</a></li>
                        <li class="li_width">|</li>
                        <li class=""><span class="item_C ui-icons"></span><a href="@Url.Action("Index","Knowledge")">知识库</a></li>
                        @{
                            Wicresoft.SelfService.DAL.ITServiceDAL itDAL = new Wicresoft.SelfService.DAL.ITServiceDAL();
                            if (itDAL.isAdmin(System.Web.HttpContext.Current.User.Identity.Name) && @UI.company == "福建省烟草专卖局")
                            {
                                <li class="li_width">|</li>
                                <li class="item_no ui-icons"><span class="item_C ui-icons"></span><a href="@Url.Action("ConfigurationIndex", "ITService")">配置人员</a></li>
                                <li class="item_no_b ui-icons"></li>
                                <li class="li_width">|</li>
                                <li class=""><span class="item_C ui-icons"></span><a href="@Url.Action("ClassifyMaintain", "ServiceMaintain")">分类维护</a></li>
                                <li class="li_width">|</li>
                                <li class=""><span class="item_C ui-icons"></span><a href="@Url.Action("BreakMaintain", "BDMaintain")">故障维护</a></li>
                                <li class="li_width">|</li>
                                <li class=""><span class="item_C ui-icons"></span><a href="@Url.Action("Index", "OSMaintain")">OS维护</a></li>
                                <li class="li_width"></li>
                            
                            }
                            else if (itDAL.isAdmin(System.Web.HttpContext.Current.User.Identity.Name))
                            {
                            
                                <li class="li_width">|</li>
                                <li class="item_no ui-icons"><span class="item_C ui-icons"></span><a href="@Url.Action("ConfigurationIndex", "ITService")">配置人员</a></li>
                                <li class="item_no_b ui-icons"></li>
                                
                            }
                          }
                    </ul>
                    <!--
                    <p class="btn_en">
                        <a href="" class="ui-icons"></a>
                    </p>
                    -->
                </div>
            </div>
            <div class="main_left">
                <div class="headpart2 ui-icons">
                </div>
                @*<div style="color:#004376; padding:18px 10px 10px 30px; font-size:14px; font-weight:bold;">
               查询人员</div>*@
                <div class="left_menu">
                    <table>
                        <tr>
                            <td style="width: 40%;">
                                账号名:
                            </td>
                            <td>
                                <input type="text" id="accountID" style="width: 85%;" />
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 40%;">
                                姓名:
                            </td>
                            <td>
                                <input type="text" id="userName" style="width: 85%;" />
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 40%;">
                                管理员身份:
                            </td>
                            <td>
                                @* <input type="checkbox" id="isAdmin"/>   *@
                                <select style="width: 90%;" id="isAdmin">
                                    <option value="2">全部</option>
                                    <option value="1">是</option>
                                    <option value="0">否</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 40%;">
                                角色:
                            </td>
                            <td>
                                <select style="width: 90%;" id="roleID">
                                    <option value="0">全部</option>
                                    <option value="1">审批人</option>
                                    <option value="2">主任</option>
                                    @*<option value="3">省接口人</option>
                                    <option value="4">省主任</option>*@
                                    <option value="6">普通用户</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 40%;">
                                地市:
                            </td>
                            <td style="width: 120px;">
                                @{
                                    List<SelectListItem> selectList = new List<SelectListItem>();
                                    if(@UI.company=="福建省烟草专卖局")
                                    {
                                        
                                        selectList.Add(new SelectListItem { Text = "全部地市", Value = "0", Selected = true });
                                        foreach (object e in Enum.GetValues(typeof(Wicresoft.SelfService.DAO.CompanyCollection)))
                                        {
                                            selectList.Add(new SelectListItem { Text = Enum.GetName(typeof(Wicresoft.SelfService.DAO.CompanyCollection), e), Value = ((int)e).ToString() });
                                        }
                                        
                                    }else{
                                        foreach (object e in Enum.GetValues(typeof(Wicresoft.SelfService.DAO.CompanyCollection)))
                                        {
                                            if (Enum.GetName(typeof(Wicresoft.SelfService.DAO.CompanyCollection),e)==@UI.company){
                                                selectList.Add(new SelectListItem { Text = Enum.GetName(typeof(Wicresoft.SelfService.DAO.CompanyCollection), e), Value = ((int)e).ToString() ,Selected=true});
                                            }
                                           
                                        }
                                    }
                                    
                                   @Html.DropDownList("CompanyCollection", selectList, new { style = "width:120px" });
                                }
                            </td>
                        </tr>
                    </table>
                    <input class="Button1 ui-icons" type="button" id="searchBtn" value="搜索" style="margin-left: 45px;
                        margin-top: 20px;" />
                    <input class="Button1 ui-icons" type="button" id="resetBtn" value="重置" style="margin-left: 45px;
                        margin-top: 5px;" />
                </div>
            </div>
            <div class="main_right">
                @RenderBody()
            </div>
        </div>
    </div>
    <div class="clear">
    </div>
    <div class="foot">
        <div class="ui-icons footcenter">
            <div class="foot_main">
                © 2012 福建烟草. All Rights Reserved.</div>
        </div>
    </div>
</body>
</html>
